﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using MongoDB.Attributes;

namespace OMIP.HMS.Model
{
        /// <summary>
        /// 医护人员数据模型
        /// </summary>
        [DataContract]
        public class EmployeeModel:IIdentity
        {
                #region 标准属性

                /// <summary>
                /// 标识
                /// </summary>
                [MongoId]
                [DataMember]
                public string Id { get; set; }

                /// <summary>
                /// 科室标识
                /// </summary>
                [DataMember]
                public string DepartmentId { get; set; }

                /// <summary>
                /// 名称
                /// </summary>
                [DataMember]
                public string Name { get; set; }

                /// <summary>
                /// 密码
                /// </summary>
                [DataMember]
                public string Password { get; set; }

                /// <summary>
                /// 权限
                /// </summary>
                [DataMember]
                public string Permissions { get; set; }

                #endregion

                #region 扩展属性

                /// <summary>
                /// 科室名称
                /// </summary>
                [DataMember]
                [MongoIgnore]
                public string DepartmentName { get; set; }

                #endregion

        }
}
